package com.example.navigationdemo

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.navigationdemo.part1.MainActivity
import com.example.navigationdemo.part2.BottomViewActivity
import com.example.navigationdemo.part3.Part3Activity
import kotlinx.android.synthetic.main.activity_manager.*

class ManagerActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_manager)
        tv_use_1.setOnClickListener {
            var intent = Intent(this, MainActivity::class.java)
            startActivity(intent)
        }
        tv_use_2.setOnClickListener {
            var intent = Intent(this, BottomViewActivity::class.java)
            startActivity(intent)
        }
        tv_use_3.setOnClickListener {
            var intent = Intent(this, Part3Activity::class.java)
            startActivity(intent)
        }
    }
}